home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / info / autodo~1.ide < prev    next >
Text File  |  1993-09-27  |  6KB  |  159 lines

  1. This came from Scott Bigham not too recently.  I hope somebody could find
  2. an interesting way to put this information to good use.  Please let me know
  3. if you come up with anything interesting......
  4.  
  5. weiner
  6.  
  7. ----------------------------------------------------------------------------
  8. Subject: 3am Downloading (was Re: umich archives)
  9.  
  10. Little did I know what I was getting into when I wrote in <666@news.duke.edu>:
  11.  
  12. Still with me?  Okay, the following assumes that you're on a Unix system with
  13. FTP access.  It may also be a bit oversimplistic for some, but better to be
  14. oversimplistic than overcryptic.
  15.  
  16. 1.  If you haven't already done so, create in your home directory a file named
  17.     .netrc with the following line:
  18.  
  19. machine atari.archive.umich.edu login anonymous password <your e-mail address>
  20.  
  21.     or add said line to an existing .netrc.  This will log you in automatically
  22.     when you connect to a.a, and is thus useful in its own right.
  23.  
  24.  
  25. 1a.  Type the command:
  26.  
  27. chmod 700 .netrc
  28.  
  29.      This denies read and write access on the file to everyone but yourself.
  30.      If you fail to do this, you'll get the error:
  31.  
  32. Error -- .netrc file not in correct mode
  33.  
  34.      ftp is thoughtfully pointing out to you that you may have sensitive
  35.      password information in a file that everyone can read.
  36.  
  37. 2.  Create a file (say `infile') containing the ftp commands you'd normally use
  38.     to download files; for instance:
  39.  
  40. binary
  41. hash
  42. cd atari/games
  43. get wizard.arc
  44. cd ../mint
  45. get mint092b.zoo
  46. [etc...]
  47.  
  48. 3.  Create another file (say `cmdfile') containing the single line:
  49.  
  50. ftp atari.archive.umich.edu < infile > outfile
  51.  
  52. 4.  Type the command:
  53.  
  54. at 3am cmdfile
  55.  
  56.     At this point you might get one of two errors.  `at:  Command not found' or
  57.     similar means your system doesn't have an `at' command.  Oh well.  `at:
  58.     Permission denied' or similar means that on your system, only certain
  59.     users are allowed to use `at'.  Talk to the local system admin about
  60.     getting added to the at.allow list.  If you get a cryptic number back,
  61.     you've succeeded; that's the ID number of the `at' job you just created.
  62.  
  63. 5.  Check back tomorrow.  If it worked, you should see all the files you
  64.     requested, and a file named `outfile' containing a sort of "transaction
  65.     log" -- most or all of what you would have seen had you been running ftp
  66.     interactively.
  67.  
  68. Note that the `3am' parameter can be made more elaborate -- `at 4am thursday',
  69. for instance.  Type "man at" for more information.
  70.  
  71. If you have questions (or if I've made mistakes), I'm just an 'r' (or an 'f') 
  72. away.
  73.  
  74.                         -sbigham
  75. -- 
  76. Scott Bigham                   | The opinions expressed above are
  77. bigham@hercules.acpub.duke.edu | (c) 1991 Hacker Ltd. and cannot be
  78.                                | copied or distributed without a
  79.                                | Darn Good Reason(tm).
  80. ------------------------------------------------------------------------------
  81.  
  82. From me, Jeff Weiner:
  83.  
  84. 1.  3 am is a good time if you're in North America. There's very little machine
  85. load, and things will go quite smoothly.  If you're in Europe or Asia,
  86. our GMT time is -4:00.  Please figure this approriately so that your request
  87. occurs when it's about 3 or 4 am HERE!!
  88.  
  89. 2.  There's been a report or two of people who have something similar set
  90. up for bart use.  If you have it, please mail me something that describes
  91. your set up.  I'm sure there are several people who could make use of it.
  92. Thanks!
  93.  
  94. ------------------------------------------------------------------------------
  95. From David Oakley:
  96. How to get BART to send you your download at 3am in the morning...
  97.  
  98. 1.    Look at the man page for 'at'. Ignoring other arguments in square 
  99.       brackets, it should be of the form:
  100.  
  101. 'at time [+increment] script'.
  102.  
  103.       If it's not then you've got the weird version... Look at the end of 
  104.       the text to see what to do. If you haven't got a man page for 'at' 
  105.       then GAME OVER... Sorry!
  106.  
  107. 2.    Create a file called 'autobart.txt' or something like that using your 
  108.       favourite editor. It should contain something like:
  109.  
  110. send 0new0
  111.  
  112.       [I send 0new0 to myself every 3 days or so: very useful to know 
  113.       what's been added!]
  114.  
  115. 3.    Again using your editor, create a file called 'autobart.sh':
  116.  
  117. mail atari@atari.archive.umich.edu < autobart.txt
  118.  
  119.       If you want to make the script restart itself every morning at 3am, 
  120.       then add a second line:
  121.  
  122. mail atari@atari.archive.umich.edu < autobart.txt
  123. at 3am tommorow autobart.sh 2> autobart.log
  124.  
  125.       The 2>... part of the command sucks the output of at into a log file. 
  126.       If you leave this bit out then the current 'at' will mail you telling 
  127.       you of the output that the next 'at' caused!
  128.  
  129. 4.    Back at the UNIX prompt, execute the command
  130.  
  131. at 3am tommorow autobart.sh
  132.  
  133.       And pray that you a number back from it. If you get 'Permission 
  134.       denied' then you need to get your sysadm to add you to his (or her) 
  135.       at.allow list. If it can't find 'at' at all, start crying.
  136.  
  137. 5.    Get enough coffee and biscuits so you can watch it all happen next 
  138.       morning!
  139.  
  140. 6.    IF YOU HAVE AN 'at' STATEMENT WITH THE SYNOPSIS
  141.       'at time [+increment]' WITH NO script PART, replace the 'at' commands 
  142.       in <3> and <4> with:
  143.  
  144. at 3am tommorow < autobart.sh
  145.  
  146.  
  147. Any probs, mail me (argh, what have I said?)
  148.  
  149. Seeya!
  150.  
  151.     David.
  152.  
  153.     /\        ASTRAsoft shareware for the Atari ST/TT/Falcon. | MSDOS 3.03
  154.    /\ \       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | C:\> DIRE
  155.   /__\ \      David Oakley:    dxo@cs.bham.ac.uk              | True.
  156. _/_  _\_\_    Graham Harrison: u2e32@keele.ac.uk              | C:\> _
  157.  
  158.  
  159.